package com.ruoyi.walmart.service.shipments;

import com.ruoyi.walmart.domain.shipments.Shipment;

import java.util.List;

public interface ShipmentService {

    /**
     * 查询
     * @return 结果
     */
    List<Shipment> selectShipmentByAuthId(Long authId);

    /**
     * 批量添加
     * @param shipmentList
     * @return
     */
    int shipmentInsertList(List<Shipment> shipmentList);

    /**
     * 删除
     * @return
     */
    int deleteShipmentByAuthId(Long authId);

    /**
     * 条件查询
     * @param shipment
     * @return
     */
    List<Shipment> selectList(Shipment shipment);

    /**
     * 查询状态
     * @param shipment 条件
     * @return 结果
     */
    int countByStatus(Shipment shipment);

    /**
     * 修改状态
     * @param shipment
     * @return
     */
    int updateStatus(Shipment shipment);

    Shipment selectShipment(Shipment shipment);
    /**
     * 查询已取消状态的 shipment_id 列表
     * @param shipmentIds
     * @return
     */
    List<String> selectCancelledShipmentIds(List<String> shipmentIds);
    // 根据shipmentId列表删除Shipment
    void deleteShipmentsByIds(List<String> existingShipmentIds);
}
